import axios from '../plugin/axios/axios'

//获取留言列表
export const leaveamessageList = params => {
  return axios({
      url: `/api/v1/leave_message/base`,
      method: 'GET',
      params
  },true)
}
//审核通过
export const leaveamessagepass = (data,id) => {
    return axios({
        url: `/api/v1/leave_message/${id}`,
        method: 'PUT',
        data
    },true)
  }
//删除留言
export const leaveamessagedelete = (data,id) => {
  return axios({
      url: `/api/v1/leave_message/${id}`,
      method: 'DELETE',
      data
  },true)
}
//获取县市
export const Accesstocountiesandcities = () => {
  return axios({
      url: `https://testyx.0578homestay.com/yx/api/v1/areas/level/district?parentCode=331100`,
      method: 'GET',
  },true)
}
export default {
    leaveamessageList,
    leaveamessagepass,
    leaveamessagedelete,
    Accesstocountiesandcities
}